package com.ljx.vueUser.service.impl;

import com.ljx.vueUser.pojo.User;
import com.ljx.vueUser.dao.UserDao;
import com.ljx.vueUser.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version V1.0
 * @author: ljx
 * @date: 2020/01/04 23:16
 * @description:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    /**
     * 查询所有用户
     * @return
     */
    public List<User> findAll() {
        List<User> list = userDao.findAll();
        System.out.println(list);
        return list;
    }
}
